﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Marmat.Forms
{
    partial class SearchControl
    {
        public class ValueItem
        {
            public string name { get; set; }

            [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
            public object[] args { get; set; }

            public override string ToString()
            {
                if (this.args is null || this.args.Length == 0)
                    return "";
                return string.Join(" 或 ", this.args);
            }
        }
    }
}
